window.onresize = function () {
    myload();
}
function myload() {
    let cW = document.documentElement.clientWidth;
    let html = document.documentElement;

    if (cW <= 1024) cW = 1024;
    if (cW >= 1920) cW = 1920;

    // 计算跟标签的大小 = 当前视口宽度 / 人为自定义的比例值
    let myFontsize = cW / 80;

    html.style.fontSize = myFontsize + "px";
}
myload();